package com.ben.multiple.shiro.entity;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;

/**
 * @author Ben
 * @date 2021/1/31
 */
@Data
public class UserRole {
    public static final List<UserRole> USER_ROLE_LIST = new ArrayList<>();

    static {
        USER_ROLE_LIST.add(new UserRole("a", "r1"));
        USER_ROLE_LIST.add(new UserRole("a", "r2"));
        USER_ROLE_LIST.add(new UserRole("b", "r2"));
    }

    String username;
    String roleName;

    public UserRole() {
    }

    public UserRole(String username, String roleName) {
        this.username = username;
        this.roleName = roleName;
    }
}
